package com.heima.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.admin.dtos.ChannelDTO;
import com.heima.model.admin.pojos.AdChannel;
import com.heima.model.common.dtos.ResponseResult;

public interface AdChannelService extends IService<AdChannel> {
    //分页查询所有频道信息
    ResponseResult<AdChannel> findChannelByPage(ChannelDTO dto);
    /*
    * 新增频道
    * */
    ResponseResult<AdChannel> insertAdChannel(AdChannel adChannel);

    /*
    * 修改频道，频道启用或禁用
    * */
    ResponseResult<AdChannel> updateAdChannel(AdChannel adChannel);
    /*
    * 频道删除
    * */
    ResponseResult<AdChannel> deleteAdChannel(Integer id);
}
